﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AF_Repertory.Repertories
{
    public partial class DBContainerWithCodeFirst : DBContainer
    {
        public DBContainerWithCodeFirst()
        {
            Database.SetInitializer(new System.Data.Entity.CreateDatabaseIfNotExists<DBContainer>());
            this.Database.CreateIfNotExists();
            try
            {
                this.Database.CreateIfNotExists();
            }
            catch
            {
            }
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {

        }
    }
}
